package at.ac.tuwien.infosys.aic11.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "cheque")
@XmlAccessorType(XmlAccessType.NONE)
public class Cheque extends DisbursementPreference {
	
	@XmlElement(name="name", required=true)
	private String name;
	
	public Cheque(){}
	
	public Cheque(String name, long customerId){
		super(customerId);
		this.name=name;
	}
	
	public Cheque(String name, InternalCustomer c){
		super(c.getCustomerId());
		this.name=name;
	}
	
	public Cheque(String name){
		this.name=name;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	

}
